let Movie = require("../models/movie.js");
let findAll = function(){
	return new Promise((resolve, reject) => {
		Movie.fetch(function(err, data){
			if(err){
				reject({"error": err});
			}else{
				resolve(data)
			}
		});
	})
}
module.exports = findAll;